

<template>
  <Person v-if="show" />
</template>

<script setup lang="ts" name="App">
import Person from '@/components/test.vue'
import { ref, onMounted } from 'vue';
let show = ref(true)


// 子先挂在完毕
onMounted(()=>{
  console.log('1111挂载完毕')
})
</script>

<style scoped>
.app {
  background-color: #ddd;
  box-shadow: 0 0 10px;
  padding: 20px;
}
</style>
